//引入 react
import React from 'react';
//引入 ReactDOM
import ReactDOM from 'react-dom';
//导入 App 组件
import App from './App';
//导入 redux 的 store.js
import store from './redux/store.js'; // 只运行, 不获取暴露值

import {BrowserRouter} from 'react-router-dom';

//渲染
ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.querySelector("#root"));

store.subscribe(() => {
    ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.querySelector("#root"));
});